﻿using Google.Protobuf.WellKnownTypes;
using guidHelper;
using Microsoft.AspNetCore.DataProtection.KeyManagement;
using MyDapperApi.Services.BaiLianAI;
using Newtonsoft.Json;
using QYWXUpdate.DataModel;
using System.Net.Http.Headers;
using System.Text;

namespace MyDapperApi.Services.OaContract;

public class OaContractService : IOaContractService
{
    private readonly IConfiguration _configuration;
    private readonly IDateBaseService _dateBaseService;
    private readonly IHttpClientFactory _httpClientFactory;
    private readonly IBaiLianAIBaseService _biLianAIBaseService;

    public OaContractService(IConfiguration configuration,
        IDateBaseService dateBaseService,
        IHttpClientFactory httpClientFactory,
        IBaiLianAIBaseService biLianAIBaseService)
    {
        _configuration = configuration;
        _dateBaseService = dateBaseService;
        _httpClientFactory = httpClientFactory;
        _biLianAIBaseService = biLianAIBaseService;
    }

    /// <summary>
    /// 获取流程并进行分析后输出
    /// </summary>
    /// <returns></returns>
    public async Task<CommonResponse> AnalysisContract()
    {
        var result = new CommonResponse();

        //获取最新流程并进行筛选（是否给赵总的）

        //执行百炼分析

        //执行企微推送

        return result;
    }

    //public async Task<CommonResponse> GetContract
}